  /* RESET ET STYLES DE BASE */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Variables */
:root {
    --primary-color: #0a3d62;
    --secondary-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --accent-color: #e67e22;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    z-index: 10000;
}

.backdrop {
    z-index: 9999;
}

        /* SECTION 2: HEADER */
        .header {
            min-height: 100vh;
            height: auto;
            background: url('../images/accueil/vision.jpg') right center/cover no-repeat;
            color: white;
            display: flex;
            align-items: center;
            position: relative;
            padding: 80px 0 40px; /* Ajouter du padding vertical */
        }

        /* Overlay pour assombrir la partie gauche du header */
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 60%;
            height: 100%;
            background: linear-gradient(to right, rgba(10, 40, 95, 0.9) 30%, rgba(10, 40, 95, 0.7) 70%, rgba(10, 40, 95, 0) 100%);
            z-index: 1;
        }

        .header .container {
            position: relative;
            z-index: 2;
            width: 100%;
        }

        .header-content {
            max-width: 600px;
            padding-top: 80px;
            word-wrap: break-word;
            overflow-wrap: break-word;
         }

        .header-content h2 {
            font-size: 36px;
            font-weight: 700;
            color: white;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 15px;
            line-height: 1.2;
        }
        .header-content h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 3px;
            background-color: white;
        }
        .header-content p {
            font-size: 20px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

/* SECTION 4: NOTRE VISION - REDESIGN */
.vision {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: #ffffff;

}

.vision-container {
    display: flex;
    min-height: 500px;
    position: relative;
}

.vision-image-container {
    position: absolute;
    width: 49%; /* Modifié à 49% comme demandé */
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.vision-image {
    width: 100%;
    height: 100%;
    background: url('../images/accueil/mission.jpg') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.vision-image:hover {
    transform: scale(1.1);
}

.vision-content-wrapper {
    width: 100%;
    padding-left: 50%; /* Ajusté pour maintenir l'espace avec 50% d'image */
    display: flex;
    align-items: center;
}

.vision-content {
    padding: 80px 0 80px 65px; /* Maintien du padding de 65px à gauche pour l'espace */
    max-width: 600px;
}

.vision-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.vision-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0d47a1;
}

.vision-content p {
    font-size: 17px;
    color: #555;
    margin-bottom: 20px;
}

/* SECTION 4.5: NOTRE AMBITION - DESIGN INVERSÉ */
.ambition {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-color: #f9f9f9;
}

.ambition-container {
    display: flex;
    min-height: 500px;
    position: relative;
}

.ambition-image-container {
    position: absolute;
    width: 55%; /* deplacer l'image vers la gauche */
    height: 100%;
    right: 0;
    top: 0;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.ambition-image {
    width: 100%;
    height: 100%;
    background: url('../images/accueil/ambition.jpg') center/cover no-repeat;
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.ambition-image:hover {
    transform: scale(1.1);
}

.ambition-content-wrapper {
    width: 100%;
    padding-right:  56%; /* deplacer le texte vers la gauche */
    display: flex;
    align-items: center;
}

.ambition-content {
    padding: 80px 60px 80px 0px;
    max-width: 600px;
    margin-left: auto;
}

.ambition-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.ambition-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0d47a1;
}

.ambition-content p {
    font-size: 17px;
    color: #555;
    margin-bottom: 20px;
}


 /* Section 5: Nos Valeurs */
 .values-section {
    padding: 100px 0;
}

.values-section h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: #0d47a1;
    position: relative;
    /*display: inline-block;*/
    padding-bottom: 15px;
}

.values-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0d47a1;
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.value-card {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.value-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    padding: 20px;
}

.value-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.value-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a3a6b;
}

.value-card p {
    color: #555;
}

/* SECTION 7: FOUNDER SECTION */
.founder-section {
    padding: 100px 0;
    background-color: #f9f9f9;

}

.founder-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.founder-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.founder-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-width: 100%;
    height: auto;
}

.founder-bio {
    flex: 1;
}

.founder-bio h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.founder-bio h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.founder-bio p {
    margin-bottom: 20px;
}



/* RESPONSIVE DESIGN */
@media screen and (max-width: 992px) {

    /* Assurer que la navbar et son backdrop soient au-dessus des contrôles vidéo */
    .navbar {
        z-index: 10000;
    }
    
    .backdrop {
        z-index: 9999;
    }

/* Ajuster l'overlay sur les écrans moyens */
    .header::before {
        width: 70%;
        background: linear-gradient(to right, rgba(10, 40, 95, 0.9) 50%, rgba(10, 40, 95, 0) 100%);
    }

    .header {
        padding: 80px 0 60px;
    }

    .header-content{
        margin-left: -20px; /* Réduire davantage la marge à gauche de 20 px pour être plus proche du bord */
        padding-top: 60px;
        max-width: 90%;
    }

    .header-content h2 {
        text-align: left;
        display: block;
        /*font-size: 32px;*/
    }

    .header-content h2::after {
        left: 0;
        transform: none;
    }
    .header-content p{
        text-align: left;
        font-size: 18px;
    }

    .vision .container {
        flex-direction: column;
        gap: 30px;
    }

    /* Vision responsive redesign */
    .vision-image-container {
        width: 45%; /* Ajusté pour tablette */
        clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    }

    .vision-content-wrapper {
        padding-left: 42%; /* Ajusté en conséquence */
    }

    .vision-content {
        padding: 60px 0 60px 50px;
    }

        .vision-container {
        display: flex;
        flex-direction: column;
    }
    .vision-content-wrapper {
        order: 1; /* le texte passe en premier */
    }
    .vision-image-container {
        order: 2; /* l’image passe en second */
    }

    /* Ambition responsive redesign */
    .ambition-image-container {
        width: 45%;
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    }

    .ambition-content-wrapper {
        padding-right: 42%;
    }

    .ambition-content {
        padding: 60px 50px 60px 0;
    }

    .founder-container {
        flex-direction: column;
    }

    .founder-image {
        order: 2;
    }

    .founder-bio {
        order: 1;
    }

    .footer .container {
        grid-template-columns: repeat(2, 1fr);
    }


    /* Nos valeurs - Passer de centré à gauche */
    .values-section h2 {
        text-align: left;
    }
    .values-section h2::after {
    left: 0;
    transform: none;
}
}

@media screen and (max-width: 768px) {

    .header-content h1 {
        font-size: 36px;
    }

    /* Ajuster le header pour mobile */
    .header {
        min-height: 100vh;
        padding: 80px 0 80px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    /* Ajuster l'overlay sur tablette */
    .header::before {
        width: 100%;
        background: linear-gradient(to right, rgba(10, 40, 95, 0.9) 0%, rgba(10, 40, 95, 0.6) 100%);
    }

    .header-content {
        padding-top: 120px;
        max-width: 95%;
        margin-left: -10px;
        box-sizing: border-box;
    }

    .header-content h2 {
        /*font-size: 28px;*/
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .header-content p {
        /*font-size: 16px;*/
        margin-bottom: 15px;
        line-height: 1.6;
    }

    /* Assurer que la navbar et son backdrop soient au-dessus des contrôles vidéo */
    .navbar {
        z-index: 10000;
    }
    
    .backdrop {
        z-index: 9999;
    }

    .video-container {
        padding-top: 56.25%; /* Return to standard aspect ratio on mobile */
    }

    /* Vision responsive redesign */
    .vision-container {
        flex-direction: column;
        min-height: auto;
    }

    .vision-image-container {
        position: relative;
        width: 100%;
        height: 350px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .vision-content-wrapper {
        width: 100%;
        padding-left: 0;
    }

    .vision-content {
        padding: 40px 20px;
        max-width: none;
    }
    /* Ajustement du logo sur mobile */
    .logo img {
        height: 40px;
    }

    /* Notre vision - Garder à gauche */
    .vision-content h2 {
        text-align: left;
    }

    .vision-content h2::after {
        left: 0;
        transform: none;
    }

    /* Ambition responsive redesign */
    .ambition-container {
        flex-direction: column;
        min-height: auto;
    }

    .ambition-image-container {
        position: relative;
        width: 100%;
        height: 350px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .ambition-content-wrapper {
        width: 100%;
        padding-right: 0;
    }

    .ambition-content {
        padding: 40px 20px;
        max-width: none;
        margin-left: 0;
    }

    .ambition-content h2 {
        text-align: left;
    }

    .ambition-content h2::after {
        left: 0;
        transform: none;
    }

    /* Nos valeurs - Maintenir à gauche */
    .values-section h2 {
        text-align: left;
    }
    .values-section h2::after {
    left: 0;
    transform: none;
    }

}

@media screen and (max-width: 576px) {

    /* Assurer que la navbar et son backdrop soient au-dessus des contrôles vidéo */
    .navbar {
        z-index: 10000;
    }
    
    .backdrop {
        z-index: 9999;
    }

    /* Ajuster spécifiquement le header pour très petits écrans */
    .header {
        min-height: 100vh;
        padding: 80px 0 100px;
        display: flex;
        align-items: center;
    }

    /* Overlay complet sur mobile */
    .header::before {
        width: 100%;
        background: rgba(10, 40, 95, 0.75);
    }

    .header-content {
        padding-top: 40px;
        max-width: 100%;
        margin-left: 0;
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-content h2 {
        /*font-size: 24px;*/
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .header-content p {
        /*font-size: 15px;*/
        margin-bottom: 15px;
        line-height: 1.6;
    }

    /* Vision responsive redesign */
    .vision-image-container {
        height: 250px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .vision-content {
        padding: 30px 20px;
    }

    /* Notre vision - Remplacer le centrage par l'alignement à gauche */
    .vision-content h2 {
        text-align: left;
    }

    .vision-content h2::after {
        left: 0;
        transform: none;
    }

    /* Ambition responsive redesign */
    .ambition-image-container {
        height: 250px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .ambition-content {
        padding: 30px 20px;
    }

    .ambition-content h2 {
        text-align: left;
    }

    .ambition-content h2::after {
        left: 0;
        transform: none;
    }

    /* Ajustement du logo sur mobile petit écran */
    .logo img {
        height: 35px;
    }
    
}
